# coding: utf-8
from sqlalchemy import Column, DateTime, String
from sqlalchemy.schema import FetchedValue
from application import db


class ErpRoleMenu(db.Model):
    __tablename__ = 'erp_role_menu'

    rid = db.Column(db.String(4), primary_key=True, nullable=False, server_default=db.FetchedValue())
    uid = db.Column(db.String(6), primary_key=True, nullable=False, server_default=db.FetchedValue())
    updated_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())
    created_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())
